#-*- coding:utf-8 -*-
import pymysql
# 数据库连接
def connect():
    conn = pymysql.connect(
        host='127.0.0.1',
        user='root',
        password='hangyanIoT2018',
        #password = 'root',
        db='jctxtest',
        #charset='utf8'
        #cursorclass=MySQLdb.cursors.DictCursor
    )
    return conn